Skip to content

Feature/define config#252

Merged
allohamora merged 5 commits intomasterfrom
feature/define-config
Nov 24, 2025
Merged

Feature/define config#252
allohamora merged 5 commits intomasterfrom
feature/define-config

Conversation

@allohamora
Copy link
Copy Markdown
Owner

This PR adds defineConfig from #244

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements the defineConfig feature for ESLint configurations (from issue #244). The changes standardize ESLint configuration generation by wrapping exports with a defineConfig() helper function instead of using framework-specific wrappers like tseslint.config() or raw array exports.

Key changes:

  • Introduced defineConfig import from 'eslint/config' in generated ESLint configurations
  • Replaced conditional export wrapping logic (typescript vs non-typescript) with unified defineConfig() approach
  • Updated ESLint and related dependencies to versions that support the new API
  • Added @ts-expect-error comment for type compatibility issue with jsx-a11y plugin

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/categories/js/eslint/eslint.entrypoint.ts Modified config builder to always use defineConfig() wrapper with import from 'eslint/config'
src/categories/js/eslint/config/react:ts.config.ts Added @ts-expect-error comment for jsx-a11y plugin type incompatibility
package.json Updated ESLint and related dev dependencies to newer versions supporting defineConfig
package-lock.json Updated dependency lock file with new versions
eslint.config.mjs Applied defineConfig pattern to project's own ESLint config
__tests__/categories/js/eslint/eslint.entrypoint.test.ts Updated test expectations to match new config output format

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

'eslint.configs.recommended',
'...tseslint.configs.recommended',
`pluginReact.configs.flat['jsx-runtime']`,
`// @ts-expect-error types are not compatible`,
Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @ts-expect-error comment lacks explanation of which types are incompatible and why. Consider adding a more descriptive comment explaining the specific type incompatibility between the jsx-a11y plugin and the ESLint flat config API, such as: // @ts-expect-error jsx-a11y plugin types don't match flat config interface requirements. This helps future maintainers understand what needs to be fixed when the type incompatibility is resolved.

Suggested change
`// @ts-expect-error types are not compatible`,
`// @ts-expect-error jsx-a11y plugin types don't match flat config interface requirements`,

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't true

@allohamora allohamora merged commit 1a72d93 into master Nov 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants